package com.ruoyi.energize.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备信息对象 device_info
 *
 * @author ruoyi
 * @date 2023-06-07
 */
public class DeviceInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备唯一ID */
    private Long id;

    /** 设备属主ID,自助终端的父设备 */
    @Excel(name = "设备属主ID,自助终端的父设备")
    private Long pid;

    /** 设备类型:pad收银板/pc电脑软件/terminal自助终端
/assistant 手机助手
/mobile 手机端 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 设备标识符 */
    @Excel(name = "设备标识符")
    private String deviceId;

    /** 设备版本号 */
    @Excel(name = "设备版本号")
    private Integer deviceVersion;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Integer cid;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer fid;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String clientName;

    /** 装机时间 */
    @Excel(name = "装机时间")
    private Long registTime;

    /** 硬盘序列号，实际包含除MAC地址之外的硬件标识 */
    @Excel(name = "硬盘序列号，实际包含除MAC地址之外的硬件标识")
    private String harddiskId;

    /** 设备地址 */
    @Excel(name = "设备地址")
    private String macAddress;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String realMacAddress;

    /** sn码 */
    @Excel(name = "sn码")
    private String snCode;

    /** 店铺名称 */
    @Excel(name = "店铺名称")
    private String company;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 开门时间 */
    @Excel(name = "开门时间")
    private String openTime;

    /** 关门时间 */
    @Excel(name = "关门时间")
    private String closeTime;

    /** 是否外送 */
    @Excel(name = "是否外送")
    private Integer delivery;

    /** 外送范围 */
    @Excel(name = "外送范围")
    private Integer deliverRange;

    /** 起送价 */
    @Excel(name = "起送价")
    private BigDecimal deliverLimit;

    /** 运费 */
    @Excel(name = "运费")
    private BigDecimal deliverCost;

    /** 商店LOGO */
    @Excel(name = "商店LOGO")
    private String logo;

    /** 推荐人 */
    @Excel(name = "推荐人")
    private String referrer;

    /** 经度 */
    @Excel(name = "经度")
    private String lng;

    /** 纬度 */
    @Excel(name = "纬度")
    private String lat;

    /** 经纬度字符串 */
    @Excel(name = "经纬度字符串")
    private String geohash;

    /** 评星 */
    @Excel(name = "评星")
    private Integer grade;

    /** 机器启用 */
    @Excel(name = "机器启用")
    private Integer switchKey;

    /** 省 */
    @Excel(name = "省")
    private Long province;

    /** 市 */
    @Excel(name = "市")
    private Long city;

    /** 区 */
    @Excel(name = "区")
    private Long area;

    /** 行业类别ID
1便利店
2蔬果生鲜
3通讯器材
4五金材料5:餐饮类 */
    @Excel(name = "行业类别")
    private Integer industryId;

    /** 商品库存预警阀值 */
    @Excel(name = "商品库存预警阀值")
    private Integer stockTrigger;

    /** 保质期阀值 */
    @Excel(name = "保质期阀值")
    private Integer produceTrigger;

    /** 是否测试机0否1是 */
    @Excel(name = "是否测试机0否1是")
    private Integer isTest;

    /** 店铺门头信息 */
    @Excel(name = "店铺门头信息")
    private String header;

    /** 无库存模式 */
    @Excel(name = "无库存模式")
    private Integer unStock;

    /** 烟草无库存模式，1-是，0-否 */
    @Excel(name = "烟草无库存模式，1-是，0-否")
    private Integer tobaccoUnStock;

    /** 卷烟商城订单是否自动入库 */
    @Excel(name = "卷烟商城订单是否自动入库")
    private Integer jyAutoInStock;

    /** 代理人 */
    @Excel(name = "代理人")
    private String agent;

    /** 分区职员ID(代理人) */
    @Excel(name = "分区职员ID(代理人)")
    private Long fqStaffId;

    /** 模式，1默认离线，2在线， */
    @Excel(name = "模式，1默认离线，2在线，")
    private Integer mode;

    /** 平板类型，1：直接付2：视付通 */
    @Excel(name = "平板类型，1：直接付2：视付通")
    private Integer appType;

    /** 机器类型0平板1商通2顶尖不带称3顶尖带称,4-普通双屏,5-新大陆,6-宝盈 */
    @Excel(name = "机器类型0平板1商通2顶尖不带称3顶尖带称,4-普通双屏,5-新大陆,6-宝盈")
    private String machineType;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDel;

    /** 是否加盟店，1：不是，2是 */
    @Excel(name = "是否加盟店，1：不是，2是")
    private Integer isFranchise;

    /** 零钱大作战每次抽奖的返利比率，0.1即返利10% */
    @Excel(name = "零钱大作战每次抽奖的返利比率，0.1即返利10%")
    private BigDecimal lingqianRate;

    /** 最后一次登录时间 */
    @Excel(name = "最后一次登录时间")
    private Integer lastLoginTime;

    /** 是否回收,1-是,0-否 */
    @Excel(name = "是否回收,1-是,0-否")
    private Integer isRecycle;

    /** 是否为B2C商城机 */
    @Excel(name = "是否为B2C商城机")
    private Integer isB2c;

    /** 对应意视科技那边探针店铺的id，0-标识未添加到探针 */
    @Excel(name = "对应意视科技那边探针店铺的id，0-标识未添加到探针")
    private Integer insightShopId;

    /** 合作期限,0-不限,过期不更新版本,没有外卖 */
    @Excel(name = "合作期限,0-不限,过期不更新版本,没有外卖")
    private Integer cooperationPeriod;

    /** 更换次数 */
    @Excel(name = "更换次数")
    private Integer changeCount;

    /** 商店类型1普通商店2直营店（暂时不用） */
    @Excel(name = "商店类型1普通商店2直营店", readConverterExp = "暂=时不用")
    private Integer storeType;

    /** 店铺内购商品是否可退：1可退2不可退 */
    @Excel(name = "店铺内购商品是否可退：1可退2不可退")
    private Integer storeIsReturn;

    /** 设备登录唯一码 */
    @Excel(name = "设备登录唯一码")
    private String androidId;

    /** 专业版到期时间,-1永久 */
    @Excel(name = "专业版到期时间,-1永久")
    private Integer expireTime;

    /** 单据是否需要审核0否1是 */
    @Excel(name = "单据是否需要审核0否1是")
    private Integer isNeedAuditBill;

    /** 烟草许可证号 */
    @Excel(name = "烟草许可证号")
    private String tobaccoLicense;

    /** 购买类型:1-试用版,2-专业版,3-免费版 */
    @Excel(name = "购买类型:1-试用版,2-专业版,3-免费版")
    private Integer rechargeType;

    /** 购买类型:1-试用版,2-专业版,3-免费版 */
    @Excel(name = "购买类型:1-试用版,2-专业版,3-免费版")
    private Integer purchaseType;

    /** 经验 */
    @Excel(name = "经验")
    private Integer exp;

    /** 积分 */
    @Excel(name = "积分")
    private Integer score;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后更新 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String manageUnitUuid;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setDeviceType(String deviceType)
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType()
    {
        return deviceType;
    }
    public void setDeviceId(String deviceId)
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId()
    {
        return deviceId;
    }
    public void setDeviceVersion(Integer deviceVersion)
    {
        this.deviceVersion = deviceVersion;
    }

    public Integer getDeviceVersion()
    {
        return deviceVersion;
    }
    public void setCid(Integer cid)
    {
        this.cid = cid;
    }

    public Integer getCid()
    {
        return cid;
    }
    public void setFid(Integer fid)
    {
        this.fid = fid;
    }

    public Integer getFid()
    {
        return fid;
    }
    public void setClientName(String clientName)
    {
        this.clientName = clientName;
    }

    public String getClientName()
    {
        return clientName;
    }
    public void setRegistTime(Long registTime)
    {
        this.registTime = registTime;
    }

    public Long getRegistTime()
    {
        return registTime;
    }
    public void setHarddiskId(String harddiskId)
    {
        this.harddiskId = harddiskId;
    }

    public String getHarddiskId()
    {
        return harddiskId;
    }
    public void setMacAddress(String macAddress)
    {
        this.macAddress = macAddress;
    }

    public String getMacAddress()
    {
        return macAddress;
    }
    public void setRealMacAddress(String realMacAddress)
    {
        this.realMacAddress = realMacAddress;
    }

    public String getRealMacAddress()
    {
        return realMacAddress;
    }
    public void setSnCode(String snCode)
    {
        this.snCode = snCode;
    }

    public String getSnCode()
    {
        return snCode;
    }
    public void setCompany(String company)
    {
        this.company = company;
    }

    public String getCompany()
    {
        return company;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setOpenTime(String openTime)
    {
        this.openTime = openTime;
    }

    public String getOpenTime()
    {
        return openTime;
    }
    public void setCloseTime(String closeTime)
    {
        this.closeTime = closeTime;
    }

    public String getCloseTime()
    {
        return closeTime;
    }
    public void setDelivery(Integer delivery)
    {
        this.delivery = delivery;
    }

    public Integer getDelivery()
    {
        return delivery;
    }
    public void setDeliverRange(Integer deliverRange)
    {
        this.deliverRange = deliverRange;
    }

    public Integer getDeliverRange()
    {
        return deliverRange;
    }
    public void setDeliverLimit(BigDecimal deliverLimit)
    {
        this.deliverLimit = deliverLimit;
    }

    public BigDecimal getDeliverLimit()
    {
        return deliverLimit;
    }
    public void setDeliverCost(BigDecimal deliverCost)
    {
        this.deliverCost = deliverCost;
    }

    public BigDecimal getDeliverCost()
    {
        return deliverCost;
    }
    public void setLogo(String logo)
    {
        this.logo = logo;
    }

    public String getLogo()
    {
        return logo;
    }
    public void setReferrer(String referrer)
    {
        this.referrer = referrer;
    }

    public String getReferrer()
    {
        return referrer;
    }
    public void setLng(String lng)
    {
        this.lng = lng;
    }

    public String getLng()
    {
        return lng;
    }
    public void setLat(String lat)
    {
        this.lat = lat;
    }

    public String getLat()
    {
        return lat;
    }
    public void setGeohash(String geohash)
    {
        this.geohash = geohash;
    }

    public String getGeohash()
    {
        return geohash;
    }
    public void setGrade(Integer grade)
    {
        this.grade = grade;
    }

    public Integer getGrade()
    {
        return grade;
    }
    public void setSwitch(Integer switchKey)
    {
        this.switchKey = switchKey;
    }

    public Integer getSwitchKey()
    {
        return switchKey;
    }
    public void setProvince(Long province)
    {
        this.province = province;
    }

    public Long getProvince()
    {
        return province;
    }
    public void setCity(Long city)
    {
        this.city = city;
    }

    public Long getCity()
    {
        return city;
    }
    public void setArea(Long area)
    {
        this.area = area;
    }

    public Long getArea()
    {
        return area;
    }
    public void setIndustryId(Integer industryId)
    {
        this.industryId = industryId;
    }

    public Integer getIndustryId()
    {
        return industryId;
    }
    public void setStockTrigger(Integer stockTrigger)
    {
        this.stockTrigger = stockTrigger;
    }

    public Integer getStockTrigger()
    {
        return stockTrigger;
    }
    public void setProduceTrigger(Integer produceTrigger)
    {
        this.produceTrigger = produceTrigger;
    }

    public Integer getProduceTrigger()
    {
        return produceTrigger;
    }
    public void setIsTest(Integer isTest)
    {
        this.isTest = isTest;
    }

    public Integer getIsTest()
    {
        return isTest;
    }
    public void setHeader(String header)
    {
        this.header = header;
    }

    public String getHeader()
    {
        return header;
    }
    public void setUnStock(Integer unStock)
    {
        this.unStock = unStock;
    }

    public Integer getUnStock()
    {
        return unStock;
    }
    public void setTobaccoUnStock(Integer tobaccoUnStock)
    {
        this.tobaccoUnStock = tobaccoUnStock;
    }

    public Integer getTobaccoUnStock()
    {
        return tobaccoUnStock;
    }
    public void setJyAutoInStock(Integer jyAutoInStock)
    {
        this.jyAutoInStock = jyAutoInStock;
    }

    public Integer getJyAutoInStock()
    {
        return jyAutoInStock;
    }
    public void setAgent(String agent)
    {
        this.agent = agent;
    }

    public String getAgent()
    {
        return agent;
    }
    public void setFqStaffId(Long fqStaffId)
    {
        this.fqStaffId = fqStaffId;
    }

    public Long getFqStaffId()
    {
        return fqStaffId;
    }
    public void setMode(Integer mode)
    {
        this.mode = mode;
    }

    public Integer getMode()
    {
        return mode;
    }
    public void setAppType(Integer appType)
    {
        this.appType = appType;
    }

    public Integer getAppType()
    {
        return appType;
    }
    public void setMachineType(String machineType)
    {
        this.machineType = machineType;
    }

    public String getMachineType()
    {
        return machineType;
    }
    public void setIsDel(Integer isDel)
    {
        this.isDel = isDel;
    }

    public Integer getIsDel()
    {
        return isDel;
    }
    public void setIsFranchise(Integer isFranchise)
    {
        this.isFranchise = isFranchise;
    }

    public Integer getIsFranchise()
    {
        return isFranchise;
    }
    public void setLingqianRate(BigDecimal lingqianRate)
    {
        this.lingqianRate = lingqianRate;
    }

    public BigDecimal getLingqianRate()
    {
        return lingqianRate;
    }
    public void setLastLoginTime(Integer lastLoginTime)
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Integer getLastLoginTime()
    {
        return lastLoginTime;
    }
    public void setIsRecycle(Integer isRecycle)
    {
        this.isRecycle = isRecycle;
    }

    public Integer getIsRecycle()
    {
        return isRecycle;
    }
    public void setIsB2c(Integer isB2c)
    {
        this.isB2c = isB2c;
    }

    public Integer getIsB2c()
    {
        return isB2c;
    }
    public void setInsightShopId(Integer insightShopId)
    {
        this.insightShopId = insightShopId;
    }

    public Integer getInsightShopId()
    {
        return insightShopId;
    }
    public void setCooperationPeriod(Integer cooperationPeriod)
    {
        this.cooperationPeriod = cooperationPeriod;
    }

    public Integer getCooperationPeriod()
    {
        return cooperationPeriod;
    }
    public void setChangeCount(Integer changeCount)
    {
        this.changeCount = changeCount;
    }

    public Integer getChangeCount()
    {
        return changeCount;
    }
    public void setStoreType(Integer storeType)
    {
        this.storeType = storeType;
    }

    public Integer getStoreType()
    {
        return storeType;
    }
    public void setStoreIsReturn(Integer storeIsReturn)
    {
        this.storeIsReturn = storeIsReturn;
    }

    public Integer getStoreIsReturn()
    {
        return storeIsReturn;
    }
    public void setAndroidId(String androidId)
    {
        this.androidId = androidId;
    }

    public String getAndroidId()
    {
        return androidId;
    }
    public void setExpireTime(Integer expireTime)
    {
        this.expireTime = expireTime;
    }

    public Integer getExpireTime()
    {
        return expireTime;
    }
    public void setIsNeedAuditBill(Integer isNeedAuditBill)
    {
        this.isNeedAuditBill = isNeedAuditBill;
    }

    public Integer getIsNeedAuditBill()
    {
        return isNeedAuditBill;
    }
    public void setTobaccoLicense(String tobaccoLicense)
    {
        this.tobaccoLicense = tobaccoLicense;
    }

    public String getTobaccoLicense()
    {
        return tobaccoLicense;
    }
    public void setRechargeType(Integer rechargeType)
    {
        this.rechargeType = rechargeType;
    }

    public Integer getRechargeType()
    {
        return rechargeType;
    }
    public void setPurchaseType(Integer purchaseType)
    {
        this.purchaseType = purchaseType;
    }

    public Integer getPurchaseType()
    {
        return purchaseType;
    }
    public void setExp(Integer exp)
    {
        this.exp = exp;
    }

    public Integer getExp()
    {
        return exp;
    }
    public void setScore(Integer score)
    {
        this.score = score;
    }

    public Integer getScore()
    {
        return score;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }
    public void setManageUnitUuid(String manageUnitUuid)
    {
        this.manageUnitUuid = manageUnitUuid;
    }

    public String getManageUnitUuid()
    {
        return manageUnitUuid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("deviceType", getDeviceType())
            .append("deviceId", getDeviceId())
            .append("deviceVersion", getDeviceVersion())
            .append("cid", getCid())
            .append("fid", getFid())
            .append("clientName", getClientName())
            .append("registTime", getRegistTime())
            .append("harddiskId", getHarddiskId())
            .append("macAddress", getMacAddress())
            .append("realMacAddress", getRealMacAddress())
            .append("snCode", getSnCode())
            .append("company", getCompany())
            .append("address", getAddress())
            .append("phone", getPhone())
            .append("openTime", getOpenTime())
            .append("closeTime", getCloseTime())
            .append("delivery", getDelivery())
            .append("deliverRange", getDeliverRange())
            .append("deliverLimit", getDeliverLimit())
            .append("deliverCost", getDeliverCost())
            .append("logo", getLogo())
            .append("referrer", getReferrer())
            .append("lng", getLng())
            .append("lat", getLat())
            .append("geohash", getGeohash())
            .append("grade", getGrade())
            .append("switch", getSwitchKey())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("industryId", getIndustryId())
            .append("stockTrigger", getStockTrigger())
            .append("produceTrigger", getProduceTrigger())
            .append("isTest", getIsTest())
            .append("header", getHeader())
            .append("remark", getRemark())
            .append("unStock", getUnStock())
            .append("tobaccoUnStock", getTobaccoUnStock())
            .append("jyAutoInStock", getJyAutoInStock())
            .append("agent", getAgent())
            .append("fqStaffId", getFqStaffId())
            .append("mode", getMode())
            .append("appType", getAppType())
            .append("machineType", getMachineType())
            .append("isDel", getIsDel())
            .append("isFranchise", getIsFranchise())
            .append("lingqianRate", getLingqianRate())
            .append("lastLoginTime", getLastLoginTime())
            .append("isRecycle", getIsRecycle())
            .append("isB2c", getIsB2c())
            .append("insightShopId", getInsightShopId())
            .append("cooperationPeriod", getCooperationPeriod())
            .append("changeCount", getChangeCount())
            .append("storeType", getStoreType())
            .append("storeIsReturn", getStoreIsReturn())
            .append("androidId", getAndroidId())
            .append("expireTime", getExpireTime())
            .append("isNeedAuditBill", getIsNeedAuditBill())
            .append("tobaccoLicense", getTobaccoLicense())
            .append("rechargeType", getRechargeType())
            .append("purchaseType", getPurchaseType())
            .append("exp", getExp())
            .append("score", getScore())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("manageUnitUuid", getManageUnitUuid())
            .toString();
    }
}
